projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b354fd
)
Use new waypoint constructor.
author
robertl
<robertl>
Mon, 3 Nov 2003 14:35:55 +0000
(14:35 +0000)
committer
robertl
<robertl>
Mon, 3 Nov 2003 14:35:55 +0000
(14:35 +0000)
mapsource.c
patch
|
blob
|
history
diff --git
a/mapsource.c
b/mapsource.c
index 972d90225893545f406bfd1c8a1fb175f69fa9dd..43606ea5cdecd1856cfbd127c44a12da0db2a529 100644
(file)
--- a/
mapsource.c
+++ b/
mapsource.c
@@
-407,7
+407,7
@@
mps_waypoint_r(FILE *mps_file, int mps_ver, waypoint **wpt)
double mps_proximity = unknown_alt;
double mps_depth = unknown_alt;
- thisWaypoint =
xcalloc(sizeof(*thisWaypoint), 1
);
+ thisWaypoint =
waypt_new(
);
*wpt = thisWaypoint;
mps_readstr(mps_file, wptname, sizeof(wptname));